// interface CategoryStateModel {
//   category1Id: number | undefined;
//   category2Id: number | undefined;
//   category3Id: number | undefined;

// }
export type Numberable = number | undefined

export interface CategoryModel {
  id: number
  name: string
}

// 单独定义一个拥有分类Id的接口
export interface CategoryIdsModel {
  category1Id: Numberable
  category2Id: Numberable
  category3Id: Numberable
}

export type CategoryListModel = CategoryModel[]

// 定义一个约束分类数据的接口 并继承自另一个接口
export interface CategoryStateModel extends CategoryIdsModel {
  category1List: CategoryListModel
  category2List: CategoryListModel
  category3List: CategoryListModel
}
